<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Class Factory{
    public static function getObjectOfClass($className)
    {
        if(class_exists($className)){
            $obj = new $className();
            return $obj;
        }
        else
        {
            die("La clase $className no existe");
        }
    }
}
?>
